01. Introduction (Migrations Part 1)

Migrations Heading

Introduction (Migrations)

Changing data schema

ND004 C01 L06 01 Migrations

Migrations Recap

Takeaways

  • Migrations deal with how we manage modifications to our data schema, over time.
  • Mistakes to our database schema are very expensive to make. The entire app can go down, so we want to
    • quickly roll back changes, and
    • test changes before we make them
  • A migration is a file that keep track of changes to our database schema (structure of our database).
    • Offers version control on our schema.

Upgrades and rollbacks

  • Migrations stack together in order to form the latest version of our database schema
  • We can upgrade our database schema by applying migrations
  • We can roll back our database schema to a former version by reverting migrations that we applied

Migrations Quiz

Doing a git commit for a Git version control system on files is similar to _____ for a version control system (using migrations) on our data schema.

SOLUTION: applying a migration (a schema upgrade)